package com.itheima.automthread;

import java.util.concurrent.atomic.AtomicInteger;

public class MyRunable implements Runnable {
    //private int count = 0;
    private AtomicInteger count = new AtomicInteger();
    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            synchronized ("1") {
                //count++;
                count.incrementAndGet();
                System.out.println("送出了"+count+"束花");
            }
        }
    }
}
